package com.xy.util;

import android.app.Activity;

/**
 * Created by XuYang
 * 2023/6/26
 * Email:544066591@qq.com
 */
public class ActivityUtil {

    public static boolean isActivityValid(Activity activity) {
        return activity != null && !activity.isFinishing() && !activity.isDestroyed();
    }
}
